package com.liqing.movecomment.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liqing.movecomment.entity.Tag;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
public class ScoreVo {
    private Integer id;
    /**
     * 电影id
     */
    private Integer moveId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 用户评分
     */
    private double score;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private MoveVo moveVo;

    private Tag tag;

}
